<div class="rows">
	<div class="panel callout">
		<h6>View Rooms</h6>
	</div>
	<div>
	<form action="" method="POST" class="custom">
		<div class="row">
			<div class="large-10 columns">
			<div class="row collapse">
				<div class="small-8 columns">
					<?=!empty($levels) ? form_dropdown('i',$levels) : 'Please set Grade Levels';?>
				</div>
				<div class="small-2 columns">
					<button class="btn prefix" value=""> Filter Room</button>
				</div>
				<div class="small-2 columns">
					<a href="<?php echo site_url('rss-add-room');?>" class="confirm btn prefix btn-success">Add A Room</a>
				</div>
			</div>
			</div>
		</div>
	</form>
	<?if(isset($system_message))echo $system_message;?>
	<?if($rooms):?>
	<?foreach(array_chunk($rooms,3) as $rooms):?>
		<div class="row">
			<?foreach($rooms as $k => $v):?>
				<div class="large-4 columns">
					<div class="panel">
						<p style="margin:0;"><span class="label">Room:</span></label><?=$v->name;?></p>
						<p style="margin:0;"><span class="label">Section:</span></label><?=$v->section_name == '' ? 'No Section Assigned' : $v->section_name;?></p>
						<p style="margin:0;"><span class="label">Level:</span></label><?=$v->level_desc == '' ? '-------' : $v->level_desc?></p>
						<p style="margin:0;"><span class="label">Max Students:</span></label><?=$v->max_students;?></p>
						<div class="btn-group">
							<a href="<?=site_url('rss-edit-room/'.$v->room_id);?>" class="btn btn-primary btn-mini"><i class="icon-pencil"></i> Edit</a>
							<a href="<?=site_url('rss-view-room/'.$v->room_id);?>" class="btn btn-primary btn-mini"><i class=" icon-eye-open"></i> View</a>
						</div>
					</div>
				</div>
			<?endforeach;?>
		</div>
	<?endforeach;?>
	<?else:?>
		<div class="alert-box">No Rooms available</div>
	<?endif;?>
		
		
		
		
		
		
		
		
		
		
		
	</div>
	<div class="clearfloat"></div>
</div>
